Inheritance diagram for IShPrefsComponent:

Public Member Functions | |
| virtual IShParameterComponent *MCCOMAPI | GetThisParameterComponent ()=0 |
| virtual TMCCommandBindingContextList *MCCOMAPI | GetCommandBindingContexts ()=0 |
To implement a prefs component:
Now for the component that wants to store its preferences, declare a 'CINF' resource and put the ID of the prefs component in its fPrefsCompID field. Example:
resource 'CINF' (R_PathAnimationMethod, "Motion Path")
{
'path',
kAnyPlatform,
kAnyAppKind,
kAnyAppMode,
};
Now in the code of component that wants to access its preferences, you can call GetMyPrefsComponent (implemented by TBasicDataExchanger). Example:
IShParameterComponent* myPrefsComp= GetMyPrefsComponent(); if (MCVerify(myPrefsComp)) { TMCPoint tbPos= kDefaultMPToolbarPos; myPrefsComp->GetParameter(kToolBarParamID, &tbPos); //... }
|
|
Returns the binding contexts of the external component |
|
|
IShPrefsComponent is always an IShParameterComponent |
1.4.5